package com.igeekhome.ccs.mapper;

import com.igeekhome.ccs.entity.CommonWords;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CommonWordsMapper {
//👇zyh-------------------------------------

    //公共库查常用语 lib=="公共库”
    List<CommonWords> queryPublicLib();

    //个人库查常用语 lib=="个人库”
    List<CommonWords> queryPrivateLib(int csId);

    //通过CmId拿分类ID
    String getCategoryIdByCmId(int cmId);

    //新增常用语对象
    void createCw(CommonWords commonWords);
//👆zyh-------------------------------------
}
